package syan.repair.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import syan.repair.service.RepairService;

import java.util.List;
import java.util.Map;

/**
 * @author CHENTAIWEN
 * @create 2022/9/18 9:06
 */
@RestController
public class repairController {
    @Autowired
    RepairService repairService;


    @GetMapping("/repair")
    public List<Map<String, Object>> repair() {
        return repairService.repair();
    }

    @GetMapping("/repairs")
    public String repairs() {
        return "10s";
    }
}
